<h1>Listing productcomments</h1>

<table>
  <tr>
    <th>Product</th>
    <th>User</th>
    <th>Content</th>
    <th>Range</th>
  </tr>

<% for productcomment in @productcomments %>
  <tr>
    <td><%=h productcomment.product_id %></td>
    <td><%=h productcomment.user_id %></td>
    <td><%=h productcomment.content %></td>
    <td><%=h productcomment.range %></td>
    <td><%= link_to 'Show', productcomment %></td>
    <td><%= link_to 'Edit', edit_productcomment_path(productcomment) %></td>
    <td><%= link_to 'Destroy', productcomment, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New productcomment', new_productcomment_path %>
